﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OP30.ViewModels
{
    public class ST00CyManagerViewModel : BindableBase
    {
        private readonly IRegionManager _regionManager;

        public ST00CyManagerViewModel(IRegionManager regionManager)
        {
            _regionManager = regionManager;

        }



        #region 事件
        private DelegateCommand _GoBackCommand;

        public DelegateCommand GoBackCommand =>
            _GoBackCommand ?? (_GoBackCommand = new DelegateCommand(ExecuteGoBackCommand));

        void ExecuteGoBackCommand()
        {
            NavigationParameters param = new NavigationParameters();
            param.Add("StationName", "ST00");
            _regionManager.RequestNavigate(PrismManager.MainViewRegionName, AppViews.ST00View, param);
        }



        #endregion

    }
}
